package com.sc.nft.entity.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
@Data
public class SearchEditDTO {
    @ApiModelProperty("唯一id")
    @NotNull(message = "唯一id不能为空")
    private Long id;

    @ApiModelProperty(value = "搜索标题")
    @NotBlank(message = "搜索标题不能为空")
    @Length(min = 1, max = 10, message = "最长10个字符")
    private String searchTitle;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序不能为空")
    private Long sort;
}
